(qb) Fix OS detection under MinGW