Fix more MinGW issues
Conditionalize OpenCV support
Decruft