Removed the A/W constants for builtin cursors, icons and resource types since they don't exist on Windows, and added typecasts everywhere instead.