Fixed some warnings (XCode 4.6)