Merge pull request #1608 from PeterTh/master

Threading fix for texture scaling, make option immediate (mk. 2)
Buildfix
another buildfix
Implement gettimeofday kernel function for non-Windows platforms. Helps some homebrew run.
Buildfix for Qt
Qt Buildfix. Wrong dir.
Symbian buildfix.
pre-C++11 buildfix. Linux buildfix.
Windows buildfix. Harmattan buildfix (it doesn't have lambdas). Tabify XBRZ.
Improve blending with two fixed colors.

It's not right, but it's less bad.  Maybe there's a better way?

Improves Popolocrois and Lunar (battle) blending issues.
Merge pull request #1614 from unknownbrackets/gpu-minor

Improve blending with two fixed colors
Moved texture scaling to separate file
Parallelized texture scaling
Added Global Threadpool to common
Adjusted Texture Scaler to use global threadpool