Incorporation of guanidine and ethylguanidine into thermosetting resins