Porting FLV writing to windows