Early in development, OpenCV failed to compile due to int and int32 being confused with each other. So a fork of OpenCV was created with modifications to fix this: sfe-SparkFro/opencv@2235af5
However poking around, I came across this post: opencv/opencv#23709 (comment) Looks like a relatively straightforward fix that redefines the integer types for this exact problem.