rearrange build into object libraries