Update to 0.40.13 structures and fix compilation.