Fix library path exports for building dependencies