Fixed win32 stuff even more. static linking does work now somehow.