undef CONST after a critical include of windows.h so that CONST enum value works, and add windows.h for Sleep() call where its needed