Fix system cursor caching mechanism

Fixes #78