Properly pass flags to ndk-build.