cleanup
setup main thread stack for GCC toolchains