Fixes CMake for Windows, use variables for linker libraries