Windows linker fixes