Fixed errors on Xcode 6.1