clang FTBFS [wrong main declaration] buildlogs + patch