I was able to make things work by changing something in windows.h.
I changed the parameter name in the FillMemory from "Fill" to "fill" and it worked:
VOID WINAPI FillMemory(long Destination,DWORD Length,char fill);
With the above line this compiles now:
#include <default.c>
#include <litec.h>
#include <com.h>
function run()
{
}