Open
PythonApplicationModule.cpp
and scroll down to the end of the file and add this
#ifdef ENABLE_EXTENDING_COSTUME_TIME
PyModule_AddIntConstant(poModule, "ENABLE_EXTENDING_COSTUME_TIME", 1);
#else
PyModule_AddIntConstant(poModule, "ENABLE_EXTENDING_COSTUME_TIME", 0);
#endif