When disable CC_USE_PHSICS disable the dependencies as well
Fix a crash in mingw