(qb) Fix OS detection under MinGW
Merge pull request #1214 from heuripedes/master

(qb) Fix OS detection under MinGW