build fixes for GHC 7.7

Fixes #5 - builds cleanly with GHC 7.7