Call FreeConsole in Con_Shutdown (WIN32).
Use raise() rather than kill(). Remove libcommon dependency from libmem.