Disable -Wold-style-cast, since it triggers warnings in Qt itself.