Fix for segfault when not root user.

- getpwnam() apparently doesn't like being passed NULL
Removed straggling libevent 1.x function call