Don't use rpath in configure check