Add library path for MacOS.
Check if endian.h exists.