strtoumax is not available on Windows; fall back to strtoul.