Use @protocol to instead of NSObject category

the issues in https://github.com/m2mIO/mqttIO-objC/issues/14