texttopng: Support -h option, and several Windows fixes