Fix linking error for windows build