compilation fails if -DWITH_LIBRD present. Fixed.