Bug 824885 - Fix -Wdeprecated-writable-strings warnings in xremote code.  r=karlt.
Bug 825079 - Fix -Wint-to-pointer-cast warnings and remove trailing whitespace in nsBaseWidget.cpp.  r=roc.