Compiles on Ubuntu 13.10 and Debian Wheezy

Fixed forgotten GUID reference. Switched to libreadline instead of libedit as lib edit didn't work. Needed to include <limits.h> instead of <limits> for UINT_MAX.