Fix build error on Windows and issue #597

1. Build Error: caused by missing |switches::kPrintRaster|.
2. Override the user agent value of child window using the the one of its parent window. Fix #597