Fixed some HWND vars outside #ifdef _WIN32.
Header files now appear in generated projects.