Fixed build errors and migrated to dub