fix compile issues under linux