shifted from haskell-compiler to ghc in configuration. fixes #52
Moved include <endian.h> outside the function definition.