build: various cmake/win32 build work.