increase thread stack size to 4M during compilation to avoid StackOverfl...

...ow errors

some users have experienced errors similar to this: https://stackoverflow.com/questions/15802933/how-to-increase-stack-size-when-compiling-a-play-scala-project-with-uncaught-exc