Fix build on GHC 7.6