Various g++/clang config_test fixes.
merge
Merge branch 'pull-request/config-test-gcc-fixes' into develop
Improve lambda test case some more.