Fixed compilation warnings on Linux