Fixed bindings generation for Win64 builds.

Fixes #1092.