Removed -pedantic flag from WARNFLAGS.

It was verbose in compiling headers.
Fixed to use master-worker model exitting.