common/vi_db.c: include <stdlib.h> for mkstemp()