PURPOSE: This phase II trial is studying how well giving carboplatin and gemcitabine together with thalidomide works in treating patients who are undergoing surgery for stage II or stage III non-small cell lung cancer.