Workaround for Valgrind compilation failure