Fixed many compile errors.