Fix rpaths on Linux to actually find the required dependencies.