Windows: Fix a cast warning when compiling for x64 in VS

* Also fixes and closes #129 again