fixes Xcode 6 compile errors