Fixed compilation issues on linux.