package gdb: fix undefined symbols in bundled readline

Use pdcurses as we do for readline package.
Merge pull request #341 from mabrand/fix-gdb

package gdb: fix undefined symbols in bundled readline