fix basic linker error on windows