Porting some C++ lib to android platform.