A few more fixes for proper static building.
Updated all headers and libraries for Windows.