as bridging statistics when using Luigi's bridging code. Also added some ifdef's to (hopefully) get it to compile under 2.2.x Submitted by: Luigi Rizzo <luigi@iet.unipi.it>