Common: Use the OSX equivalent byte-swap functions
Merge pull request #760 from lioncash/swap

Common: Use the OSX equivalent byte-swap functions