- Remove WIN32 from CMakeLists.txt to get a console on Windows.
- Fix Windows main function prototype.
- Add our own gstreamer debug log function handler.
- Gstreamer changes for Windows.