Add -Wall flag for CMake compilation