Make endianness go on OSX
Merge pull request #3 from richo/osx-support

Support OSX