Included linux byteorder functions
Changed ifdef to be POSIX compliant
Merge pull request #1 from marcinbujar/master

Modified code to allow compilation on Linux