vm: fix C++11 build after stdint update

If __STDINT_LIMITS is defined, SIZE_MAX
is defined twice

Change-Id: I8d35157e3157ccd6fffc9c980557e0986859d20e
Fix Class.getDeclaringClass bug

(cherry-picked from commit 10197124acd5d6ec4c082a4763932952ee3529ad)

Bug: https://code.google.com/p/android/issues/detail?id=61003
Change-Id: Ie97d12acd7a8897c336c183dac8837769e1b9c5a
vm: fix extraneous parentheses warnings

These warnings are treated as errors with clang and Werror.

Fixes the following:
    equality comparison with extraneous parentheses

Change-Id: I57083736747bc6e6d07af1523e31d9223f8aad2a