Fixed build warnings in Xcode 4.6