Adapt client for windows and Qt 5.x.