Move lib to native, fix deps