Fix compilation warnings

This fixes a bunch of warning I got while porting it to use dub (using 2.065.0).