Fixes for having linux_vmi compile.
Fixed all but one warnings for linux_vmi.