[Tizen] Fix compile error.
- Tizen SDK doesn't support override keyword yet.
- add class keyword before friend keyword.
Merge pull request #3196 from pyrasis/tizen_2.2

[Tizen] Fix compile error