core: add platform-dependent extension on "weechat-curses" link (so that link is "weechat-curses.exe" on cygwin)