Also supports setting default thread stack size via linker, making it possible to fix programs without modifying source.