clone of xzutils with VS2013 fixes