Use reflection to check restricted methods

`Assembly.LoadFile` and `Assembly.Location` are not present on Windows
Phone. To allow us to keep our hard coded list of main loop integrations
(and other support), we'll check for these methods at runtime and properties
and skip steps that aren't required/supported on Windows Phone.
Make TcpWriter Windows Phone compatible