fix jdk check + add kernel/**/Android.mk support for inline compilation