Allow static linking with libyaml on windows