Fix build failure on GHC 7.4