Add FlexibleContexts and FlexibleInstances extensions.

These are needed on the Rec class and instance in GHC 7.4