Here is a good description of the problem:
which also links to this thread in VMware:
I think this is a better workaround than the one you posted:
baseservices:/home/user# export CC=gcc-4.1
baseservices:/home/user# export GXX=g++-4.1
I actually tried the one you linked first but it still did not compile and I needed the GXX=.
It also appears I am slightly out of touch with VMware as the server console is kind of depreciated but you can still use their other tools to manage a vmware server without using the browser with a good install.
It might be that getting this to compile is not doable but in my experience... anything is possible with linux.