added generic build function for structures

can only create structures that workers can build