backend: compilation fixes