toolbox: make toolbox a static library