Use syntax-propertize-function if it is available

font-lock-syntactic-keywords aren't considered if font-lock-mode is off.
Drop pre-Emacs23 support macros