So what is the workaround for this bug when one wants to use gcc >= 6.0.0 with a cmake build system?