Fix build with SDL prior to 1.3.0
Fix compilation with gcc