Trying to work around VC2010 bug (post-build steps aren't always run correctly).
Remove stray compiler option.
Fix crash in 64-bit release.
Fix bad cast causing intermittent crashes in 64-bit.