Fix lint and add flag to Cmake