Fix dependencies and coremod loading to set up automatically