Make sure the binary attribute 'cflags' is applied to C++ targets
Move cxxshlib3 under the cxxprog1 directory:

* This helps to test modules with programs and libraries.
Fixed a bad comment
Make cxxprog1 and cxxshlib1 prerequisites to their respective check targets:

* This fixes errors when using Make's -j option.