adding support for different endiannesses

Proviously, running libemf2svg would fail on big endian arch (like sparc)
This is now fixed by checking endianness in cmake and setting WORDS_BIGENDIAN
if needed.