fix compile error for ubuntu > precise