Reimplement some vendor specific C library extensions.
Add various stubs.
Add assembly replacement stubs.
Update makefile.
Stubify remaining DOS specific system calls.
Compilation now succeeds.