dist: improve static and testccs