Reorder the build subdirs, such that all code compiles first