"err:module:load_builtin_dll failed to load .so lib for builtin L"gdi32.dll": libstdc++.so.5: cannot open shared object file: No such file or directory"
I've had errors about .so.5 before, because FC4 has so.6 However i managed to find a fix in where to download so.5 and it allowed me to compile something that wouldn't before.
yum install compat-libstdc++-33
try that, it should install the compatibility libraries for an older GCC version. If not you'll need to find a repo with it.
Not saying it'll fix your problem but it might fix the first part