Byteswap for mac

https://issues.apache.org/jira/browse/AVRO-1369