set linker/compiler flag only on win platforms