This worked for me. I recompiled the current Script BASIC 2.2 source with TDM-GCC-32 and attached a zip with binaries needed to compile to C. Let me know if you run into any problems.
C:\sb22\test>type 4next.sb
FOR x = 1 to 5
PRINT x,"\n"
NEXT x
C:\sb22\test>scriba -Co 4next.c 4next.sb
C:\sb22\test>gcc -Os 4next.c -I \sb22\source C:\TDM-GCC-32\lib\sb.a -lscriba -lm -lpthread -lws2_32 -ladvapi32 -o 4next
C:\sb22\test>4next
1
2
3
4
5
C:\sb22\test>dir 4next.*
Volume in drive C has no label.
Volume Serial Number is 1415-F200
Directory of C:\sb22\test
10/16/2014 05:32 PM 2,619 4next.c
10/16/2014 05:32 PM 42,505 4next.exe
10/16/2014 05:25 PM 40 4next.sb
3 File(s) 45,164 bytes
0 Dir(s) 67,840,901,120 bytes free
C:\sb22\test>