Use abs path for final_dir and simplify coverage emitter/builder

Also fix use of LINKFLAGS and CXXFLAGS in gcc and clang toolchains