Fixed cmake flags for gcc 4.6