Fix detect C++ dialect.
Update platform and build-env detect.