add FlexibleContexts langauge pragma.

Because GHC-7.10 requires that all the language extensions required for the inferred type signatures are explicitly enabled.