build: Check whether rl_free_keymap is declared.