Fix compilation with dmd master

Similar to 022102598253dcba8be38bcf74ad3cb7e7d030ee