allow compilation with -fversion=BareMetal
reduced dependency on posix calls.
if working with objects will need implementation of malloc, calloc,
realloc and free. (or stubs)
a few string functions are too required ( memcpy, memmove, memcmp,
memset, memchr and strlen ). i was too lazy to provide proper generics
tho.