fix memory counters on kernel < 2.6.34