Hi
I am using the presence module in library mode and have found that even when in this mode the presence notifier process (default is number of presence notifier processes is 1) is forked in the child init process.
I think if you are in library mode you should break out before this process(es) is forked.
I've attached a patch - if everyone is OK I will commit this to master.