Fixes some Windows issues.