Fix capabilities checking on windows, fixes #211