closed #5606, fix cross platform compile error