[fix] separated mqtt related parts of structures

* fixes the compilation issues
Merge pull request #109 from xively/fix_unit_tests

[fix] separated mqtt related parts of structures