Remove various stuff from cmake scripts

This breaks compilation with gcc-4.8 and is gone from 6.0 anyway