Fix C++ support: set $target{cxx} correctly