Fixed mosquitto compile errors