Byteswap for unsigned long to satisfy clang on OSX