Use new function parseint32 in SplitHostPort
Use the new function parseint32 in SplitHostPort instead of calling strtol directly.