Added -Wno-invalid-offsetof flag to clang.
Fixed LITTLE_ENDIAN redefinition.
Fixed warnings under OSX again.
Fixed warnings in Linux (under gcc 4.6)
Merge remote-tracking branch 'origin/fix-warnings' into fix-warnings