cleanup some c++ code
use the version of isupper,islower,isprint shipped with libc
attempt to rpath issue under darwin