rework giblib deps, fix docs dir