Synthesis and anti-Mycobacterium tuberculosis activity of imide-β-carboline and carbomethoxy-β-carboline derivatives.