Fixed some iOS 5 things
fixes for iOS 5
Working on B-Trees