[PCL] Improved warning in the References folder and TargetFramework options panel

Fixes bug #13217