I uninstalled the rpm version of postgres and compiled it on this machine and that's solved this problem. I don't have a lot of compiling experience so it took a few tries but once I had the following rpm packages installed it went very smooth.
- gcc
- g++
- cpp
- glibc-headers
- kernel-headers
I'm not 100% sure which rpm I used to install from initially but I think it was the one designated for Redhat 7.0 on rpmfind.net.