allow building with newer javac versions
set gnu++11 to compiler when it supports it
dont build java docs when android docs are disabled
work around ClassLoader limitation