do a better check for multiarch libs