Revert "Removed old and unused code from ec.h"

This reverts commit 380a7789457becfe9598e4d97bb64497e9e0b9fb.
Trying to fix issue 169, gcc inclusion