Fix melpa compile error and warn