[tools] cmake: link statically