refactoring: move inline functions to cpp to avoid bigger exe.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>