fixed version, added variables needed for building on Windows