Derp ok. Now I got the OpenCV code working too by linking some weird libraries only needed by OS X for some very obscure reason