Fix warnings when !PIC_ENABLE_READLINE.

Small fixes for readline-disabled builds.