Changes to (re)enable building on Windows; biggest is new pkg_resources replacement to make py2exe happy.