Fix Windows compile errors.