Also replace the PointRef struct with an integer array as this was a workaround for `qsort` not taking additional arguments.
BKE_scene.h