Fix regressions in 64-bit Windows code path.
Set up buildout environment.
Remove unnecessary files.
Support custom key conversion.