Fix a memory leak.
Change deployment target to iOS 5.0. Fix autorotate issue.