Compiling various things on Centos5 and make them portable