Biocides, pest repellants or attractants, or plant growth regulators containing heterocyclic compounds having rings with one or more oxygen or sulfur atoms as the only ring hetero atoms