Only use compilation-save-buffers-predicate if available

The variable is not defined in Emacs < 24.1. Fixes #59.