Changed ASSERT in Release mode, and made it build properly.

To make it build properly, I added fake functions into cCriticalSection.