Supports association with magnets and torrent under linux.

Although adding via magnet seem broken for whatever reason...
TODO: remove >harmful system calls and check why the magnets aren't added.