more libc additions

Signed-off-by: Boris Figovsky <borfig@gmail.com>