lvm2: fix build with readline>=6.3.