define string-prefix-p for older Emacsen

Fixes #1500.