fix build @mac

FIx build on Mac 10.9.5,  Linux build untested.
This does not compile on ubuntu 12.04. machine/endian.h does not exist. 

Can you look for a common header or #ifdef this?

Also, since we've moved to apache, this repo is no longer used. Can you submit PRs here instead?
https://github.com/apache/incubator-parquet-cpp

Thanks