Topological d-wave superconductivity in two dimensions