Fix opencv detection.

This commit changes the ".so" argument placement in check_ld sub-program.