Allow tests to run on both Xcode 5 and 6

This means we have to have com.apple.product-type.bundle (which Xcode 5
understands but Xcode 6 likes to change) and the OBJC_DISABLE_GC that
Xcode 6 needs to run the tests.