D3D11: Use appropriate shader for PEEK_Z.

Trying to use GetDepthMatrixProgram outside of
TCacheEntry::FromRenderTarget is a bad idea, so don't.  Instead, use a
shader which only copies the input.

Fixes lens flare depth test in Twilight Princess. See
http://code.google.com/p/dolphin-emu/issues/detail?id=5999 .
BitField: Optimize generated assembly by forcing inlining.
Fix crash when pressing Tab

When pressing Tab for a long time, Dolphin will sooner or later crash
because the result of FindFocus() has become NULL (toctou).
Merge pull request #92 from Tilka/tab_crash

Fix crash when pressing Tab
Common: Add a 'Flag' class that is used to encapsulate a boolean flag manipulated from several threads
Common: Move the Event class to a separate file, and add tests for it. Fix includes everywhere to match this.
BitField: Fix alignment issues.

At least one platform (ARM with NEON instructions enabled) generates SIGBUSes if BitField objects aren't aligned properly.
UnitTests: Add a test for BitField behavior on odd structure alignment.
Merge pull request #270 from neobrain/bitfield_fixes

Bitfield fixes
Common::Flag: Add support for TestAndSet + test by implementing basic spinlocks.
Common::Event: Implement in terms of Common::Flag to get rid of a volatile and optimize with early returns and atomic swaps
Common::Event: Add a faster Windows specific implementation based on the concurrency runtime.
Merge pull request #271 from delroth/threading-stuff

Threading improvements: add Common::Flag and improve Common::Event
Add the ability to generate a files MD5sum.
This adds the ability to generate a files MD5sum in the ISO properties.
This uses polarssl to generate the MD5Sum.
Merge pull request #265 from Sonicadvance1/GenerateMD5Sum

Add the ability to generate a file's MD5sum.
Fix the integer overflow that happens in the MD5Sum Progressbar.

Instead of using a u64 size integer as the range on the progressbar, set the max as 1000.
Similar maximums are used in other parts of the UI.
Merge pull request #274 from Sonicadvance1/Fix-MD5Overflow

Fix the integer overflow that happens in the MD5Sum Progressbar.
Software backend: make TEV rounding match hardware.

Formulas stolen from gxtest.  (Not sure how "==" got turned into "!=", but
I'm pretty confident the patched version is correct.)
Software backend: don't skip red component in TEV.
Merge pull request #275 from magumagu/swbackend-fix-tev

Software backend: TEV combiner compare mode fixes