cmake: static linking for python and tool binaries