Add MATE_DESKTOP_CHECK_VERSION function