Fixes for OS X (required removing -static flag and -pthreads flag, inclu...

...de endian.h)

All tests pass.  See wiki for Mac OS X installation.  Confirm that removing -static and -pthreads flags is acceptable.
Worked for me, somewhat surprisingly. I did, however, have to add ```-lsnappy```, which is not required on @flipoutbrian's Ubuntu 14.04 and is on my Ubuntu 12.04.

Let's sync up Monday. This PR is OK to merge. Thanks for creating it, along with the wiki page!