Define finalizers using the cool NIF hack.