4. You need to make sure the environment variables are set prior to calling sa-compile. This is probably easiest done by creating a new batch file to run it. Create sa-compile-run.bat in /perl/bin like this:
call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"
call sa-compile.bat