parted: fix build with readline>=6.3.