Improve build system for cxx module.

In particular:

(Makefile.in) Autogenerate targets check-XYZ for each build dir XYZ.
(Makefile.subdirs) Allow C++ tests, add new pattern rule to compule them.

Also, add empty/dummy files cxx.h, cxx/dummy.c and cxx/test/t-cxx-compiler.cpp.