empty/nonexisting main.cpp segments are removed. Install script.