First you should not mix CentOS 5 packages into a CentOS 4 system. That is how you create a problem in the first place.
Building software on top of frankenstein build environments is how you end with broken software, and should not be encouraged :)
Let alone development environment.