block: some compilation fixes