Move kinit into the main module again

Load the NIF dynamically