fix compilation for 4.00