[functions] fixes gcc 4.8

4.8 apparently doesn't allow func attr on defintion any more
[functions] reintroduce proper fem adapter, remove depereacted one