Warning fixes for GCC 4.8.
Merge pull request #2368 from asmorkalov:ocv_gcc48_warning_fix