Make it run also under 4.0

This is not the best way, but this way it runs for us.