Synthesis of Pyrimidine Based Thiazolidinones and Azetidinones: Antimicrobial and Antitubercular Agents.