Changed dlclass so that instances don't need to stay alive for the duration of the produced objects.