Minor refactoring
Add BuildSpecs constructor to SpecTree

This can be used to do IO when constructing the spec tree.