minor fixes to build and pstring