Add some code to handles SIGCHLD correctly

register an init callback and reset the action for SIGCHLD to the default behavior.
this will break the exec plugin. Do not even load the exec plugin if you intend to do this