Fix compile on Xcode 6