Misc PCL-related API fixes.