di-provider: add some static declarations
di-provider: disable debug code, silences unused fn warning
di-provider: fix calculation of free blocks for D82

Fixes #103