Ensure compatibility with OpenCV 2.3

Point2f.cross() does not exist in OpenCV 2.3.

Compute the cross-product explicitely to support OpenCV 2.3