Merge pull request #19 from lovell/endian-detection-cross-platform Add endian detection for OS X, Windows and *BSD