Fix compilation problems because of the udpates of the api