Fix compilation with dmd master

Similar to 022102598253dcba8be38bcf74ad3cb7e7d030ee
Merge pull request #477 from Dicebot/fix-dmd-master

[0.9.22] fix compilation with dmd master