fix some build warnings
add sdl include dir properly
backward compatibility