fix bug on compiling RHEL 6