Fixed compilation for Linux