Allowing control of long stack support through environment variables