fix pointer conversion warnings on centos 5.10