Make code compile on GHC < 7.8