fix compilation error

resolves #10

Reviewed-by: Robert Quattlebaum <darco@deepdarc.com>
Fix for weird libedit issue, noticed on OS X.

Related to #10
Fix for some warnings.