This appears to be an instance of #493. Building the latest git master of DUB from source should fix the errors by using a defined order for passing source files to the compiler. Otherwise, the latest DMD 2.065 beta also fixes the issue. Sorry for taking so long to answer, this post got buried under below a bunch of other messages.