weechat: fix build on darwin