Obama, Castro to share stage at summit as detente takes hold