Make the build script compatible with emacs compile mode.