Adds stacktrace flag to build.