Decide at compile time whether to patch certain functions
Use user-emacs-directory var in place of "~/.emacs.d"