Fixed rpath linking and running.