Fix for static on Windows