cmt: static build
cmake: fixup