Added writing of structures which crashes Avian on Windows