fix crash in vd~
libpds: Minor source cleanup