add a flag "IGNORE_ERRORS", which can be used to ignore build errors in packages