fix for raspbian and SDL1.2