cmake: move definition of Win32 flags together This makes splitting up the library build instructions later on more obvious and easier to achieve.