Dub build system used instead of Make + minor changes.

Signed-off-by: Stanislav Demyanovich <s.demyanovich@socialquantum.ru>