miniupnpd: update to 1.8, fix build on SmartOS

- update to 1.8 (20130730)
- some patches were needed to build on SmartOS