Fix a Metal linker error in the UI test target.
Fix a Metal support detection bug.
iPhone 3Gs fix.