GHC 7.8 compatibility fixes

With these changes and #46 `snap-server` compiles for me on GHC 7.8.