remove unused files & fix includes
allow to disable archive support