Set RT_LIBS correctly from autoconf detection