Fixed an issue which cropped up due to breaking change in D.

D does not allow assignment to dg.funcptr and dg.ptr now. https://github.com/D-Programming-Language/dmd/pull/3181