[Util] Fixed Qt4 build for SerializeJson().
[NSM GD] Fixed Qt4 build.
[Util] Use compact param in SerializeJson() on Qt4.