publish: fixing build errors

generated from commit 6f0ed658e924348919368f9d7408d3cf782f8e47