verifier: Bypass monitor-{enter,exit} depth checks

Per Google Bug 61916[1], the monitor-enter and monitor-exit checks in
dex2oat are excessively strict and will reject some valid APKs, such as
WhatsApp[2].  This change attempts to relax those requirements.

[1] https://code.google.com/p/android/issues/detail?id=61916
[2] http://forum.xda-developers.com/showthread.php?t=2525044

Amend from OmniROM: Add a proper ifdef variable that can be
toggled in Android.mk (-DWORKAROUND_BUG_61916)

Change-Id: I19ed1076b124b56ee158ede569fa26ac33910e1c
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Include <algorithm> to have access to replace function

Change-Id: Ia47c424348ca5764777a37ce03bae503cff9c727
Signed-off-by: zwliew <zhaoweiliew@gmail.com>
4-byte align 64-bit values in Get/Set Double/Long for GCC 4.8.

Bug: 10837416
Change-Id: Ibb562407d81c2085666ae8824e7570f22e56eaa7
Allow host valgrind gtests to be run individually.

Change-Id: I80976600034046cb42e8565bfd38f75811d7a08e
Fix clean-oat

Change-Id: I96ba59794e50f630aaa06d226b1048000b1b6188