gmake: Cleanup driver imports and remove dead code.