Simplified the API to be more similar to the existing functions (i.e. passing a to the setMouseCursor function which must stay alive as long as the cursor is set).
Added new files to CMakeLists.txt.