Register throwbuild in Main.