modified ecosmodule.c to be friendlier to windows