build: install -fwhole-program only for gcc (clang didn't have such switch)