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/trunk@1443845 13f79535-47bb-0310-9956-ffa450edef68