simplified MANIFEST.in and fixed portability issues [ci skip]