Fix crash when setting up arguments, add lang.c to Windows Makefile

Invalid array index caused a crash.
File was missing from Windows build.