fix compile on ubuntu precise