Make sure the RTS is built, even when no programs are being built with stage1

Part of #7841
Fix an all-target call in the build system
Some build system tweaks