mds-kbdc: compile have_range and if

Signed-off-by: Mattias Andrée <maandree@operamail.com>