PCL fixes for Linux