fix centos 5 warnnings