Add Safe Haskell annotations.
Build script: allow choosing GHC versions.
Safe on GHC 7.4.