SDL: fix OS X compile with non-official SDL [R. Belmont, based on a patch by Fernando Lemos]