Quick hack to allow it to built on OSX

readline on OSX is provided by libedit, which, for some reason, does not implement rl_completion_display_matches_hook
Assigning string literals to char* is deprecated
Merge pull request #2 from uppfinnarn/master

Fixed build on OSX and some compiler warnings