Enable -XFlexibleContexts to build on GHC 7.9