added yapgvb compatibility code (autosensing whether it uses boost or not)