fix warnings on linux