Update main.cpp

People are having problems with the default stack size...
maybe this helps?? (UNTESTED)
see here: http://stackoverflow.com/questions/2279052/increase-stack-size-in-linux-with-setrlimit