Update swab.hpp

osx endian path
Update swab.hpp

added byteswapping support for osx
Update swab.hpp
Update swab.hpp
Merge remote-tracking branch 'remotes/snoldak/patch-1'