Build as shared library
Set endianness properly