fix in lib where warnings are dumped onto the prompt when calling compopt