use of write()/read() causes heap dependency. Replaced them with _write()/_read(). Added syscalls.h