Fixed compilation with GHC 7.0.4 and GHC 7.2.2

In these versions of GHC, Data.Monoid doesn't export (<>).
Merge branch 'maint-2.4.2'