Fixed build errors for Xcode6beta3