Fix building genprimopcode with GHC 7.0, and remove haskell98 imports