fix for ghc 7.8

- allow unix version 2.7.*
- use mask instead of block/unblock in MonadException