set the NDK APP_PLATFORM based on minSdkVersion in AndroidManifest.xml

This way we avoid annoying, arcane build errors caused by different parts
of the build being built for different platform levels.