fix some compile error on Linux system