remove old test script
add a few declarations from the ANativeActivity API
finish() when quitting