Fix to compile on XCode 6