dock-apps-builder: integration old dock C code