add count when calculating LD
Merge branch 'master' of github.com:zhanxw/rvtests
Fix compiling for CentOS5