Fixed mingw poll detection
Merge pull request #974 from xantares/master

Fixed mingw poll detection