ttserver: fixup forward (vexing) fucntion decl's in main, get rid of **environ