Now I can compile to android, lib already loads successfully, then thread dies with SIGSEGV