use __USE_CRITICAL_SECTION for windows as default