Fixed vision compilation issues