fix regression that made shared libs crash on arm