fix Issue 11453 - Compiling packages has a dependency on order of modules passed to the compiler