Fix privs management, segfault seems to be fixed now.
Make spawning static.