ctk-curses: add CURSES_LIB to TARGET_LIBFILES, not LDFLAGS

It seems TARGET_LIBFILES is used at the end of the link command,
unlike LDFLAGS, which should help when only a static curses lib is
available, like on Haiku.