I've had map files for which shp2img failed with errors about bing unable to find projection library that would go away, if I set PROJ_LIB=\ms4w\proj\nad. Is there some reason that this variable is not set in \ms4w\setenv.bat?