Compilation fix for D