Improved cursor hiding on OS X