Fix a missing member initialization
Fix building issues on Windows

Add missing dependencies for Windows.
Also specify needed components from OpenCV explicitly.