Updated configure.ac to loop through possible JAVA_CPPFLAGS options
per environment.

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

git-svn-id: https://svn.apache.org/repos/asf/incubator/mesos/branches/0.10.x@1443846 13f79535-47bb-0310-9956-ffa450edef68