As others have said, it is possible to run CFLs from DC. However, be aware that there are a few different designs of the driver circuits for them. The older ones used a bridge rectifer straight into a filter cap on the input. These will work fine on 340VDC. However, the power factor of this design is pretty terrible, so in recent years a new design has been showing up. These isolate the filter cap from the rectifer with another diode, and the tube is run from the unfiltered DC - the filter cap only supplies the control circuit. Since the tube supply in this design is only 240VRMS, the tube will be overdriven if run from 340VDC.
I once built an inverter for driving these that supplied 340VDC, pulse width modulated to provide an appropriate RMS value. It may be possible to find a suitable DC value between 240V and 340V that provides acceptable operation. (The driver circuit is underdriven at 240VDC, and the transistors may not saturate). It would probably be best to measure the power consumption, and get it to equal the value when the bulb is driven from 240VAC.