fix CMakeLists template to compile with gcc 4.9/ArchLinux