Fix behavior of recursive build support and versioned dependencies.