fix windows build and successfully tested on windows with android NDK