Allow compilation from dired-mode too.