Add compiler hook for C++ code generation.
Add correct handling of build directory for compilation artifacts.
Ignore default build directory.
Merge CPP code generation callbacks.