fixed SDL1 compile error