fix compile error on ubuntu 12.0.4