point_to_dem_dist: Make it compile