swap: define Darwin (b|l)e16toh equivalents
Since these functions are always available on Darwin, I figured it wasn't necessarily worth explicitly checking for them in cmake and just added an #ifdef __APPLE__
.
Originally filed by mistydemeo on GitHub