Use conditional assignment for CXX, CFLAGS and LINK in Makefiles.