Change byter order functions to respect the current architecture endianness