libc: Add more functions needed by Node.js

Signed-off-by: David Halls <dahalls@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>