glow window issues

this pr fixes #652 (NullReferenceException in GlowWindow) and #711 (Glow problem with SizeToContent)

Closes #652 
Closes #711