Add mouse hide support for mac.