Fix capabilities checking on windows, fixes #211
Merge pull request #212 from njoyard/fix-211

Fix capabilities checking on windows, fixes #211