This phase II trial studies how well ponatinib hydrochloride works in treating patients with stage III-IV lung cancer. Ponatinib hydrochloride may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth.