Fix two compile warnings under RHEL-5 with gcc 4.1.2-54