Added function to resolve library paths