Could you add a check to see whether the stopwatch class exists? IIRC it was added somewhere around 2.2/2.3, no?