use popup menu for cpp completions + misc other improvements