fix compilation when HAVE_LZMA_H is not defined
fix msvc compilation issues that sneaked in in the meantime
making test runner work on windows