added C++ sections to linker scripts. got *.o and *.d files to build to a subdir.