#169 fixes in libzvm #171 fixes in samples/tests