Fixes to compile with GHC 7.8

With these, as well as a fix to `recursion-schemes` (https://github.com/ekmett/recursion-schemes/issues/6), the package builds on GHC 7.8.