modtool: updated to pimpl format
build: fixes to support out-of-tree builds.
Merge branch 'next-modtool' into runtime_pimpl