make necessary changes to support newer pcl lib