Fixes to support iOS v4.3

Application was crashing on iOS 4.3. This fixes those.