County reaches agreement for building