Add support for Xcode version 5.0.1 and added simple query in text example

Added support for Version 5.0.1 (5A2053) - can now build for iOS.
Added testSimpleQuery_main() test function with simple query example.