Fix library path API usage