From http://stackoverflow.com/questions/349889/how-do-you-determine-the-amount-of-linux-system-ram-in-c?rq=1