build.ps1: Return non-zero exit code if something failed to build.