Moved changeToUser(), cleanUpPidFile(), killFromPidFile() to daemon.c. These are daemonization functions.
redirect_stdin() is a daemonization function, and disconnecting from the standard input is always a good idea for MPD.