build extension in dl directory