GHC 7.6 compatibility fix