Ensure a deterministic file order when passing source files to the compiler.

This should avoid "random" triggering of compiler bugs that depend on the order of source files. See also #493.