Derive from prog-mode when available

See: https://github.com/yoshiki/yaml-mode/issues/17