Windows fixes

Dear Joker developers,

This pull request contains commits that enable building and launching Joker on Windows.

Thanks for your attention.