Handle RPATHs more cleanly