Silly windows.h library macros are leaking somewhere. For example, in CWindowManager.h, there is a CreateWindow undef. Find the source and add undefines there (or better yet, remove the offending include).
Some work was done to resolve this but there appear to be some remaining issues.