updated to use clangs driver and fixed series of small issues