Updated .i file to use CAPI, generated D and c binding files.