virt plugin: fix old-style function definitions