Make discovering services sample compile again

@davidgraeff this makes the DiscoveringServices sample compile again. Unfortunately the sample is still unable to discover any services. Did you use the discovery part or just register services? 

Thanks!