Windows platforms only: Merged some cursor-related code from John Fay