vlib: fix issues with PCI handling code