Replace deprecated CoLoadLibrary/CoFreeLibrary calls by new WinAPI calls.