The Synthesis of (1,3,4-Oxadiazol-2-yl)Acrylic Acid Derivatives with Antibacterial and Protistocidal Activities