You can search the key words through out the solution. I find only one file using OutputDebugStringA/W which is CCCommon.cpp. You can comment them out for the release build, or and a macro as your wish.
Reguard to CreateMutex stuff, it is used in CCWinRTUtils.h, you can use here. CreateEventEx() is used in several places, you can check whether to change it or simply comment out, if you’re not using them.