Fix mouse move tracking in OS X