installing old version of c++ compiler
I have compiled older gcc in the past as a last resort. 


Get Xcode - it gives you clang and lots of header files. If you can't stomach it, get the command line tools. 
Get http://brew.sh 
brew install gcc


From there you can see if an older gcc is available or worst case, pull that source and compile it from the version of gcc you have running from above. It looks like you'll be able to use homebrew to get at the version 4.3 from the versioned source already in the tool:

mac:~ me$ brew search gcc
gcc
homebrew/dupes/apple-gcc42       homebrew/versions/gcc44          homebrew/versions/gcc47          homebrew/versions/gcc5
homebrew/head-only/gccxml        homebrew/versions/gcc45          homebrew/versions/gcc48          homebrew/versions/llvm-gcc28
homebrew/versions/gcc43          homebrew/versions/gcc46          homebrew/versions/gcc49