Fix parsing of negative numbers in strtol(3).
Fix parsing of negative numbers in strtol(3).

Also ensure the end pointer is set on failure and 0x followed by a
non-hex-digit is handled correctly.

dennis95/dennix,dennis95/dennix,dennis95/dennix