Avoid GCC 7 to compile with

This is mainly for Ubuntu bionic, but a general dependency approach.
30 jobs for bugfix/gcc-7-bionic in 52 minutes and 57 seconds (queued for 5 seconds)