Modified code to allow compilation on Linux

I have added a conditional include and defines so that the Mach specific byte order functions are replaced with the correct Linux equivalents. The code compliles successfully with gcc 4.8.1. In addition I compiled gender.sam on a Mac and a Linux machine to compare the outputs and verify that the correct byte order functions are used.