Hi Daniel,
stdio.h is a header for the Linux system runtime library libc.so. You need the corresponding development package to compile pretty much anything, which will probably be named libc-dev or libc6-dev for a relatively recent release. As Rob pointed out, you may also need the x11 development package libx11-dev.
Happy compiling, 
–Roland