Fix some Windows problems.