Fixed linker errors on Windows.