Fail when extern is found among the sources. That's better than ignoring
it because these files do not belong in the sources folder
Remove unused import
Remove unnecessary type info
Use proper exception when compiling failed