Added compile flags, reduced the number of files written in parallel

The default value of outputgrpsize is 1. That way the default behavior should be like nothing has changed.