Move C API of opencv_objdetect to separate file

Also move cv::linemod to own header
Remove ifdef __cplusplus from nonfree headers
Add missed constants for reduce operation
Remove C API from OpenCL module