The build process aborts with compile errors when compiling OpenCV (version 2.4.6.1) due to the following bug in OpenCV: http://code.opencv.org/issues/3179
This was fixed in Commit 2349f7ea89f77579c22cb1e6fddecf054e5f2061 of the OpenCV master. Therefore using an OpenCV version after this commit will fix the problem for Mitk.