version 0.2.2 with simpler endianness test using Rconfig.h