Fix detecting which processes we can attach to when using Qt5 on Windows.