modified CMakeLists to prevent segfault with gcc5
done like it already was done for https://c4science.ch/D168