[ecl_build] check for realpath symbol in -lrt.