Modifications for to work on iOS 4.2 using XCode 3.2.5