Fix CreateWindow and CreateGC attributes encoding

They should be 4 byte length