Attempt to mitigate ongoing segfaults and memory related apperrors by replacing libraries