android porting work (fixed linking err)