This avoid lots of warnings from gcc 8.
Boost.Signals is deprecated. This fixes bug #9943. The only thing left to do is to rewrite (or get rid of) the boost -mt test in config/lyxinclude.m4 not to use signals anymore.
After the latest changes we require less parts of boost, but unfortunaly the effect is only small.