Fix compilation of imported files