It's hack-ish, but it appears to work well enough for all/most programs that use libkvm, e.g. ps, w, netstat, dmesg, etc.