fix #3304 failed to build on linux.