Hodge-podge of misc fixes

    - update old calls in experimental/upnp
    - add noexecstack to linker options
    - remove sorting of dependencies, so order can matter
      (especially for static libraries)