please, revert these changes. it's 2.4 only https://github.com/Itseez/opencv/pull/2706