Improvements to allow compilation of pbart-reader