If someone is interested, I managed to replace all turbo c library functions with bios/dos int calls, (all file related functions, setvect getvect, sleep, exit etc...). Now I can use this 21h,48 function with no issues, so there was some bug in turbo c.
I still need the c0c.obj (compact memory...