Fix building on win