xcode 6 beta 5 compile fixes