Transform folders ./ and lib/ from C to C++.
Clean-up after transformation from C to C++.

Transform forgotten folders dev/ps and dom/lgm/ngin2d.
Minor clean-ups.