Fix build on snap ci