Added flags for multisampling in GL, and implementation of this for iOS.