My kernel was compiled with gcc 2.95.4 and I was able to get the nvidia installer to use 2.95.4 by going into /usr/bin as root and running "ln -sf gcc-2.95 gcc".