Added timeout to upnp operations
Added linux support