Fix XXF86VM build errors

Credit to ShadowNinja