Fix the compile error on ubuntu 10.04