Fix compile error on GHC 7.4