Revert "build: move ndk fixup into configure.sh"

This reverts commit 0a79ed074b323e5184ac42108c6be2a3af2e1df0.
build: fix ndk fixup

- Don't trigger a full build when config.h is hacked
- Also hack config.h when configure dependencies change.