fix media device detector for windows