Add compilation of external files

External files may contain import declarations. They will be ignored by
Frontend.HaskellSrcExts.
Fix warning about unused name
Use compileFile in Transport example