Added FlexibleContexts flag required by ghc-7.9