[feature] made mqtt layer compilable