Integrated all upstream changes

Removed MeasureGPU (It will be added a plug-in.
Fixed C4244 warnings (static_cast<> or disable  (i.e. PCRE library)).
Fixed link errors for various configurations.