Fix build against Eien <3.1.0;
Many other GCC build errors fixed.