fixed compiling static on windows