Added a separate type for BuildSpec (rather than just defining it implicitly in several places).