Implement more fixes suggested by Tari.

Conflicts:
	include/fxcg/misc.h
Implement more fixes on display.h.

Conflicts:
	include/fxcg/display.h
Dump syscall versions of some stdlib routines into relevant headers.