Conditionally compile cbits/endian.c

Also added 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.