Added support for x64, tested on Visual C++ 8 (Visual Studio 2005).