Fixed a compilation bug with updated Xam API