Add imports to compilation units when possible