fix some warning on linux