added global flag stack-size= and program specific settings stacksize. the flag understand k and m suffixes for kilobytes and megabytes, while the stacksize setting expects a byte size value