Mouse cursor visibility fix, mostly for OSX