temporarily move code out of headers, in order to make symbol lookup work

Signed-off-by: Janos Laube <janos.dev@gmail.com>