Made cursor support work on linux