I think I finally got it.
that error was only a warning. it's still the same compiler error I was getting all this time. But finally after taking these 3 lines from this Primecoin tutorial:
http://www.davidedicillo.com/developing/how-to-mine-primecoin-xpm-on-the-cloud/adding:
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile
then make the file. This will allow it to compile all the way.