If anyone needs to patch CentOS 6 like I had to (I know, I know..), it's possible.
You'll need to install gcc, pam-devel and openldap-devel if you need it.
Then you can build from source using ./configure --prefix=/usr && make && make install
Oh and remember to switch your repos to CentOS Vault instead of the default mirrorlist if you need the packages mentioned above.