avoid compile error under linux