Fixed some compile errors.