Fix target name in conditional linking for rt-library.