Added change originally made by CrC (Cristian Cadar?) that
replaces machine specific byteswapping macros with generic ones.

I guess the reason for doing this is to avoid versions that might
use assembly.