Fix some syntax errors for centos 5