[OSX] Fix Window.focus() not taking focus

FIX rogerwang/node-webkit#2724 and also rogerwang/node-webkit#2735