Fix compilation of the "virtual method" sample