Fixed some Windows errors.