disable CheckState() for non-Windows platform

This function use specific features of Windows.