Xcode 6 support and podspec fix

Project cannot be built under Xcode 6. This fixes that and adds a few fixed for example project and podspec.