fix compilation warnings on linux