Optically thick winds and nova outbursts