fix compile error on Linux platform