fixed compile errors of SDL renderer