CLEAN: remove deprecated code
FIX: Compiling for Windows XP with InitializeCriticalSectionEx
CLEAN