small makefile improvements
c++. Most of NS converted.
c++. Most of ACS converted.