Fixed compilation problems on nacl