TComDataCU: add QP-independent initEstData
TComDataCU: add QP-independent initSubCU
TEncCU: all SUbCUs will now copy QP array directly from parent CU, instead of resetting to qp(0).
TEncCU: further refine qp offsets
thread: add an incr() method to ThreadSafeInteger to avoid redundant locks

--HG--
extra : rebase_source : a52865234a4d38093abcba6b5041a84efdf84a92
cmake: pkgconfig file must be installed in user-specified lib folder (refs #40)

--HG--
extra : rebase_source : 7329eb3c516ac1a27c82af45777ce1365ae7d654
cmake: tabs to spaces
TEncBinCoderCABAC: fix MingGW build "declaration of 'byte' shadows a global declaration"
y4m: use ThreadSafeInteger to manage ring buffer
encoder: keep copy of input parameters (refs #43)

We do not want to allow the user to change the param used by the encoder during
the encode, nor do we want to suffer from cleanup ordering issues. We can't
crash if the user released the param struct they allocated prior to closing the
encoder
yuv: use ThreadSafeInteger to manage ring buffer
motion: UMH fix to match x264 behavior
motion: add missing parens in COST_MV() macro (fixes #41)