Added -Wno-invalid-offsetof flag to clang.
Fixed LITTLE_ENDIAN redefinition.
Fixed warnings under OSX again.
Fixed warnings in Linux (under gcc 4.6)