General fix for Mac _OSSwapInt16 problem