Warning/Analysis Fixes.

Fixes up the deprecated __private_extern__ usage, only frees
passwordBytes if non-NULL, and updated to Xcode 4.6 project setting
recommendations.