Switch to new GHC Handle API for GHC > 6.12
Replace IOBase.FD with CInt as it isn't exposed any more
Merge pull request #2 from hsenag/master

Build with GHC 7.8 on Windows