replace factory by a recent version from Singular github snapshot

remarks:
-could not get to work showvar and others with new factory yet
-enable ntl and flint
-disable building shared libs for factory
-update Macaulays check for libfactory.
-wind up minimal version for factory