Compile umbrella projects in the correct order

Fixes #1018