Fix some issues for msvc compile

Description: https://github.com/QupZilla/qupzilla/issues/1263