Fix for OSX

wget and readlink -f is not available in OSX.
emacs crashes on ctrl-g if not built with POSIX_SIGNALS define.