Fixed compilation problems on Linux