gschem: Remove unused variable assignment in x_event_key()
gaf: Use g_setenv() instead of setenv().

Using bare setenv() was causing problems with Windows builds.

Reported-by: DJ Delorie <dj@delorie.com>