Fix broken memcheck build