Added workaround if _get_comp_words_by_ref() is not available.
Minor adaptions.