Improved library path for external libraries