-Fix: Improve os/endian.h compatibility with old GCC versions or other compilers

Will now compile with GCC older than 4.3
__builtin_bswap32 is not available in older GCC versions
-Fix: fix icon map loading for Big endian machines