[untracked] memory leaks, code cleanup, static OpenFEC library

- inspected&fixed code for memory leaks
- made openfec library built-in (static library)
- removed deprecated code