Update swab.hpp

added byteswapping support for osx