fix windows warning and change QByteArray initializer to match documented prototype