Synthetic approach to the synthesis of potential tuberculostats, bacteriostats and antifertility compounds