Cleanup based on Keith's comments. #753
Fix another GCC/clang warning on OS X:

support/hex.c:42:80: error: implicit conversion loses integer precision: 'unsigned long' to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]