Fix Jira issue #ROOT-5858 (Missing library search path)

Solve the problem by asking the system its library search path (thanks Axel for the tip)