RT#14505 Handle -Wl,-rpath correctly

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>