fix compiling error on linux and android.