cmake: add -Wno-invalid-source-encoding compile flag to Clang builds
Merge branch 'master' into no_singleton