Fix compilation on 4.00 & 4.01