build: remove detection of newer librest

because it never worked anyway