It looks like you're missing some header files. I'm not familiar with Ubuntu, but maybe installing the latest version of gcc will place the header files there for you?