Fix compiling issue in rhel 5