Various fixes

These are various fixes I've done for our products at NETGEAR using forked-daapd.