fix segfault when dl doesnt load