Fixed cursor visibility issues on OS X