For those trying to get this to work under x64. I took the trouble of downloading OpenCV 1.0, making the necessary changes and building the x64 libraries. I place them here : https://rapidshare.com/files/459764220/OpenCV_x64_libs.zip
I also included my own .mexw64 (Caution, this was build using Visual Studio, which means you need their runtime libraries)