Fix invalid linkage on win32