Fix link error when readline disabed