fix the build errors in linux