Some changes on emqtt_protocol to correct compilation errors