Initial work on NDK support