tools/cmake: Build without some included libs