readline: fix build if ncurses headers are not found for various reasons

Signed-off-by: Stephan Raue <stephan@openelec.tv>
parted:init: fix build

Signed-off-by: Stephan Raue <stephan@openelec.tv>