Fix VS2012 build
Merge pull request #137 from tribal-tec/master

Threadsafety for avahi to fix travis
Merge pull request #138 from tribal-tec/vs2012

Fix VS2012 build
Real fix for avahi w/ multiple threads