build: move the subproject variables to a common section at the end