Fixes to work with GHC 7.8

Just a few fixes so that Shpider works with GHC 7.8.