Fix some compatibility issues with iOS 4.3