xz: build as static library

... or gdb fails because it is linked against lzma and
xz is not installed to target system