Porting a command-line executable to Android with an NDK standalone compiler