various compilation fixes (see #226, and #88)
more compilation fixes (see #226)
use new Blocks interface
it compiles now, it needs however to be tested