Extend strtoul() to cope with hex as well as decimal. Doesn't cope