wg: Fix build without VIMAGE.
This is a direct commit to stable/13.
Reported by: Helge Oldach <freebsd@oldach.net>