cmake: detect inttypes.h and use for uint64_t printfs

--HG--
branch : stable
encoder: use more portable %PRIu64, define __STDC_FORMAT_MACROS

Older GCC versions and clang require __STDC_FORMAT_MACROS to be defined prior to
including stdint.h when compiling for C++, in order for PRIu64 and friends to be
defined

--HG--
branch : stable
aq: Bug Fixes in aq , ssim when ctu size is not set as 64.

1.Calculate qp offset for CU based maxCuSize set in FrameEncoder::calcQpForCu
2.Fix height for ssim computation based on maxCuHeight in FrameFilter::processRowPost

--HG--
branch : stable
Fix to eliminate unwanted application of weight in some (ref, enc) pairs

--HG--
branch : stable