Fix VLM compilation with --disable-vlm - fixes #1431