Add hook for glibc readline function