Enable compilation with GHC HEAD (v7.9)

should I merge this in the official repo?