fix compile error under linux