Replaced deprecated functions and updated Cmake file so that they can find sdf/sdf.hh