Fixed windows build errors.