add --with-libdir and --with-mandir (patch from Guenther Deschner)