Fix compilation bug at c++ shortcuts.