[PATCH 00/12] fix many test failures in various build config scenarios