Fix compile bug with XCode 6