Fix so the project builds on modern Xcode and iOS. Should now work with iOS 8 and Xcode 6.

(added a missing gl include).