fix some compile errors.