Change cursor ownership handling

- Handle cursors using a std::shared_ptr
- Add new convenience function StyleManager::setDefaultMouseCursor