fix sdl configure with Xcode 5.1
Merge pull request #900 from Vavius/cmake-sdl-fix

fix sdl configure with Xcode 5.1