ByteRage cross-platform compatibility

These changes improve compatibility convert byte swap a 64-bit number with other platforms and include support conversion functions in case of its absence in the platform