Python warning fix conditional on cmake version
The check_compiler_flag()
func is only for cmake 3.19 and later, so make the checks for silencing string-literal vs char* warnings conditional on the cmake version. Only impacts Python 3.6 and earlier.