Added iPad and Xcode 4.2 compatibility