build: change where we set -static for Windows