SDL 1.2 adaptations
Cmake improvements