Fix DISABLE_COLLECTSTATIC test