[CMake] Don't translate --disable-tr1-headers to CMake, it's gone.
Get rid of two unused warnings.