Try to detect lzma and compile without it.
Fix warning on FreeBSD.