Fix for #162

Packaging requires compilation of the `*.el` files. To avoid rejecting submission to the MELPA repository I've applied the patch from  https://gist.github.com/tstgruby/3794507 which fixes most compilation errors.