core: fix installation of weechat-plugin.h with autotools (patch #8305)