brew upgrade readline

To avoid possible conflicts, explicitly point to brew installed version.
    LDFLAGS:  -L/usr/local/opt/readline/lib
    CPPFLAGS: -I/usr/local/opt/readline/include

Mac OS X provides similar software, and installing this software in
parallel can cause all kinds of trouble.