solved by following this forum post.
[url]Compiling 1.7.2 on Windows]
put this at the top of openCVTexture.h which does the trick.
#ifndef HAVE_SSIZE_T
#ifdef MS_WIN64
typedef __int64 ssize_t;
#else
typedef _W64 int ssize_t;
#endif
#define HAVE_SSIZE_T 1
#endif