init wcore stuff in lcoreinit, eliminating dependency on messageloop