Conditionally compile cbits/endian.c

Also added the file to Extra-source-files so that cabal sdist is guaranteed
to work no matter which version of GHC you happen to be using at the time.