They make those vertical sheet metal vents you can use or rig a flexible 4" dryer tube to a window but your going to have to clean either out regularly. Dryers and water heaters are are high on the list for starting fires.
I don't have a basement nor know anyone with one so it's a new one for me really..