add a library locally