Replays 42e01d24. Thanks to @mikael-s.
Works with g++ 4.9.
Revert 717eea9e. Actually this produced more warnings for all gcc versions
than we had for some versions of clang.
The features we use seem to be working with g++ 4.8.
Now compiles with g++ 7 (and also with older versions)