fix setForegroundWindow using pinvoke.net