Extensions in certain topological algebraic categories