Add BYTE_ORDER definitions for some Mac OS versions (on behalf of Declan Rieb)
Fix bug related to packet sizes