fix linux building with unified deps

note: multithreaded building is (still) not reliable.