Added libversion() to check major, minor, revision of mosquitto library

To find the mosquitto library version against its compiled.