Add some portability

+ Makefile now uses GNU make syntax
+ A portable endian.h has been added to allow use on OSX
+ An gtest Binary for OSX has been added