fix compile error for linux