fixing compile error on RHEL6