Making resourcet ready for GHC 7.8

This patch is necessary to compile resourcet with GHC 7.8. Currently I'm testing Warp with GHC 7.8. If you merge this and release it (and warp), it would much help my project. Thanks in advance.