Add FlexibleInstances pragma

To make it compile with GHC 7.6.3