Added C implementation of uname

Avoids having to spawn a subprocess.