Added compiler flags to ignore specific warnings in gcc/g++.
Updated CMakeLists.txt to ignore some problematic warnings.