It seems like you are missing some libraries on your operating system.
You might want to install the developement version of libc which would be a package like glibc-dev or libc-dev depending on your distro.