strtoul() ported