C: more from win. do not link to internal static core functions

already booted, just use get_cv() to get the CV.
add re::regnames to in_static_core()
this should fix more windows issues