Fix for errno in strtol.