fix compilation for XCode6