Fixed MESOS-1427: 'friend' statement in Variable resolved to a different State class on clang 3.2

Review: https://reviews.apache.org/r/22054