Petri Kero pointed out a FreeLibrary() call that should be guarded by NO_IPV6.