fix linker errors on WIN32