Add a strtol-based implementation