Fix compilation

Similar to the bugs in https://github.com/menudoproblema/libemqtt/commit/e155eac8742039b4ef4f1569e2a7d13d9d2e906f  was this ever tested with even just "make" ?!