fix libnames for windows

this fixes the perf issues on windows where we were falling back to ffi