Fix for NDK r9 compatibility

Found this fix on the cocos2dx githib with the above comment.