Conditionally compile cbits/endian.c

Also added the file to extra-source-files so that cabal sdist works
no matter which version of GHC you happen to be using.