Multi-file compilation, other improvements