fix SDL1 compile errors