Fix backward compatibility in Sample 1 to support wxWidget > 2