Cleaned up code to compile with '-Wall -ansi'
Fixed output of /proc/meminfo - still horribly non-portable