Fix #7008: Add a64l and l64a from glibc, and add some missing definitions in wchar.h and stdlib.h

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
Import div.c patch by Tri-Edge AI

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>