Minor build script changes to target API 17 and make the build scripts a little more git submodule friendly.