Illegitimacy proceedings are generally considered to be civil in nature, and it is therefore generally recognized that the mother and putative father of an illegitimate child have the right to compromise, settle, or release a claim, and that such an agreement is a defense against subsequent proceedings by the mother.