Introduced runtime byte order detection when SYSTEM_BYTEORDER macro is missing

Fixed the bug reported in the issue #263.