Use YCM_NO_DEPRECATED and ycm_deprecated_warning
Add missing copyright statement