Ported pico_ql_vt.c for Valgrind in master.