Fix static build on Windows.
Fix Windows compilation.