Fix warnings, fix archieve compilation error