Fixed compatibility with dmd git master

Just a couple of things that have been tightened up recently:

no overriding without correct storage classes.

no passing rvalues as ref arguemnts.