Windows doesn't have setenv, so use _putenv_s.
Compile testthrw3.c on all Windows build configurations.