Make generated classes PCL-compatible