Clean up slightly.
Look at the mplayer X11 window ID to determine whether a new mplayer
has started.
Reap dead children.
Define WNOHANG before using it, otherwise waitpid will just hang
forever.