PLPLOT: Fix build on newer versions of plplot

Have added cmake function test for plplot function plwidth() and #ifdef
switch in code.