Fix hardcoded ldpath.