Improved synthesis of pyrrolo[1,2-c]pyrimidine and derivatives