Fix compilation error on GHC 7.6.3 and warning on GHC 7.4.2