Fix compilation under CentOS

I hope I didn't broke anything, but it works for me.